package com.wl.common;

import javafx.scene.control.Alert;

public class WindowComponent {
  public static void showAlert(String title, String header, String content) {
    Alert alert = new Alert(Alert.AlertType.WARNING);
    alert.setTitle(title);
    alert.setHeaderText(header);
    alert.setContentText(content);
    // 加载并应用CSS样式
//    alert.getDialogPane().getStylesheets().add(UIHelper.class.getResource("/css/styles.css").toExternalForm());
    alert.showAndWait();
  }
}
